set visible of card field "score 1" to not visible of card field "score 1"
set visible of card field "score 2" to not visible of card field "score 2"
set visible of card field "score 3" to not visible of card field "score 3"
set visible of card field "title 1" to not visible of card field "Title 1"
set visible of card field "title 2" to not visible of card field "Title 2"
set visible of card field "title 3" to not visible of card field "Title 3"
set visible of card field "Back of Score" to not visible of card field "Back of Score"
set visible of card field "title" to not visible of card field "title"
set visible of card button "score" to not visible of card button "score"
end ToggleScore
on ShowScore
set visible of card field "Score 1" to true
set visible of card field "Score 2" to true
set visible of card field "Score 3" to true
set visible of card field "Title 1" to true
set visible of card field "Title 2" to true
set visible of card field "Title 3" to true
set visible of card field "Back of Score" to true
set visible of card field "Title" to true
set visible of card button "Score" to true
end ShowScore
on HideScore
set visible of card field "Score 1" to false
set visible of card field "Score 2" to false
set visible of card field "Score 3" to false
set visible of card field "Title 1" to false
set visible of card field "Title 2" to false
set visible of card field "Title 3" to false
set visible of card field "Back of Score" to false
set visible of card field "Title" to false
set visible of card button "Score" to false
end HideScore
On HideExplanation
set visible of card button "ExplDone" to false
set visible of card field "Explanation #4" to false
End HideExplanation
-- part 24 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=0 top=0 right=312 bottom=512
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Background Button
-- part 4 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=206 top=314 right=336 bottom=306
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: New Game
----- HyperTalk script -----
on mouseUp
global entrynumber, matches, score
set lockscreen to true
HideScore
HideExplanation
set lockscreen to false
set visible of card field "Wait Message" to true
set lockscreen to true
set visible of card field "Wait Message" to false
go next
shufflebuttons
set visible of card button "Shuffle" to false
set visible of card button "High Scores" to false
set lockscreen to false
wait 180
set lockscreen to true
repeat with buttonid = 1 to 60
set icon of background button buttonid to 0
end repeat
put 0 into entrynumber
put 0 into matches
put 0 into score
set lockscreen to false
end mouseUp
-- part 5 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=4 top=314 right=336 bottom=104
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Go Home
----- HyperTalk script -----
on mouseUp
go home
end mouseUp
-- part 7 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=408 top=314 right=336 bottom=508
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Information
----- HyperTalk script -----
on mouseUp
set visible of card field "Explanation #4" to not visible of card field "Explanation #4"
set visible of card button "Expldone" to not visible of card button "Expldone"
end mouseUp
-- part 20 (field)
-- low flags: 81
-- high flags: 0004
-- rect: left=14 top=23 right=294 bottom=494
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Back of Score
-- part 10 (field)
-- low flags: 81
-- high flags: 2002
-- rect: left=14 top=70 right=95 bottom=92
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 251
-- text size: 14
-- style flags: 256
-- line height: 18
-- part name: Title 1
-- part 12 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=307 top=314 right=336 bottom=407
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: High Scores
----- HyperTalk script -----
on mouseUp
set lockscreen to true
ToggleScore
set lockscreen to false
end mouseUp
-- part 17 (field)
-- low flags: 81
-- high flags: 2002
-- rect: left=281 top=70 right=95 bottom=492
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 251
-- text size: 14
-- style flags: 256
-- line height: 18
-- part name: Title 3
-- part 16 (field)
-- low flags: 81
-- high flags: 2002
-- rect: left=91 top=70 right=95 bottom=282
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 251
-- text size: 14
-- style flags: 256
-- line height: 18
-- part name: Title 2
-- part 14 (field)
-- low flags: 81
-- high flags: 2002
-- rect: left=14 top=23 right=68 bottom=492
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 251
-- text size: 28
-- style flags: 256
-- line height: 37
-- part name: Title
-- part 13 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=105 top=314 right=336 bottom=205
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Clear Scores
----- HyperTalk script -----
on mouseUp
set lockscreen to true
put empty into card field "score 1"
put empty into card field "score 2"
put empty into card field "score 3"
set lockscreen to false
end mouseUp
-- part 21 (field)
-- low flags: 81
-- high flags: 2002
-- rect: left=14 top=91 right=292 bottom=92
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 251
-- text size: 14
-- style flags: 256
-- line height: 18
-- part name: Score 1
-- part 22 (field)
-- low flags: 81
-- high flags: 2002
-- rect: left=91 top=91 right=292 bottom=282
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 251
-- text size: 14
-- style flags: 256
-- line height: 18
-- part name: Score 2
-- part 23 (field)
-- low flags: 81
-- high flags: 2002
-- rect: left=281 top=91 right=292 bottom=492
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 251
-- text size: 14
-- style flags: 256
-- line height: 18
-- part name: Score 3
-- part 11 (button)
-- low flags: 80
-- high flags: 0000
-- rect: left=14 top=23 right=295 bottom=495
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Score
----- HyperTalk script -----
on mouseUp
set lockscreen to true
HideScore
set lockscreen to false
end mouseUp
-- part 8 (field)
-- low flags: 81
-- high flags: 2004
-- rect: left=44 top=47 right=251 bottom=455
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 251
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Explanation #4
-- part 9 (button)
-- low flags: 80
-- high flags: 0000
-- rect: left=44 top=47 right=251 bottom=455
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Expldone
----- HyperTalk script -----
on mouseUp
set visible of card field "Explanation #4" to false
set visible of card button "Expldone" to false
end mouseUp
-- part 15 (field)
-- low flags: 81
-- high flags: 0004
-- rect: left=91 top=138 right=248 bottom=423
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 251
-- text size: 14
-- style flags: 256
-- line height: 18
-- part name: Wait Message
-- part contents for card part 8
----- text -----
Concentration is a game in which you must match pairs of icons by memory. You are presented with a board containing 30 pairs of different icons, briefly, at the start of the game, after which the board is cleared. By clicking in the appropriate squares, you must indicate where pairs of matching icons are located, scoring 2 points for each correct guess, and losing 1 point for each incorrect guess. Your score is displayed at the end of the game, when all matching pairs have been found, or when you give up.